<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>用户中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css">
    <link rel="stylesheet" href="use.css" media="all" />
    <link rel="stylesheet" href="../../css/bootstrap.css" media="all" />
    <script type="text/javascript" src="../../js/jquery-2.1.1.js"></script>
    <style type="text/css">
        .table th,
        .table td {
            text-align: center;
            vertical-align: middle !important;
        }
    </style>
</head>

<body>




    <script type="text/javascript">
        if (window.sessionStorage["scale"] == 1 || window.sessionStorage["scale"] == 4) {
            document.write(`<h5>
				　<input id="searchText" type="text" placeholder="真实姓名" value="">　
				<button onclick="search();" class="btn btn-primary ">搜索</button>
				<button onclick="adduserInfo();" class="btn btn-primary " data-toggle="modal" href="#mymodal-link" id="href-btn">添加
				</button>
			</h5>`);
        }
    </script>
    <table id="teachers"
        class="table table-bordered table-striped text-centerk text-center table table-hover table-condensed">
    </table>

    <!-- 模态弹出窗内容 -->
    <div style="display: none;" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
        aria-hidden="true" id="mymodal-link">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only"></span></button>
                    <h4 class="modal-title">用户信息</h4>
                </div>
                <div class="modal-body text-center">
                    <h6>
                        用户名：<input type="text" name="username" placeholder="请输入用户名" value=""><br> 　　密　码：
                        <input type="text" name="userpwd" placeholder="请输入密码" value=""><br> 　真实姓名：
                        <input type="text" name="tname" placeholder="请输入真实姓名" value=""><br> 　　手　机：
                        <input type="text" name="tphone" placeholder="请输入手机" value=""><br> 　　银行卡：
                        <input type="text" name="yhc" placeholder="请输入银行卡" value=""><br> 管 理 身 份： <select name="scale"
                            id="scale" disabled>

                            <script type="text/javascript">
                                if (window.sessionStorage["scale"] == 1) {
                                    document.write(`<option value ="5">五级管理员</option>
		                        	     <option value ="4">四级管理员</option>
			                         	 <option value ="3">三级管理员</option>
			                         	 <option value ="2">二级管理员</option>
			                         	 <option value ="1">一级管理员</option>`);
                                } else if (window.sessionStorage["scale"] == 3) {
                                    document.write(`<option value ="3">三级管理员</option>`);
                                } else if (window.sessionStorage["scale"] == 4) {
                                    document.write(`<option value ="5">五级管理员</option>
                                    <option value ="3">三级管理员</option>`);
                                } else if (window.sessionStorage["scale"] == 5) {
                                    document.write(`<option value ="5">五级管理员</option>`);
                                }

                            </script>

                        </select><br> 　　身份证号码：
                        <input type="text" name="idCard" placeholder="身份证号码" value=""><br>
                        <p id="dixingong">底薪：<input type="text" name="salary" placeholder="底薪" value="0"></p>
                        <script>
                            if (sessionStorage.getItem('scale') == 1) {
                                $("#dixingong").css("display", "inline-block");
                            }
                            else {
                                $("#dixingong").css("display", "none");
                            }
                        </script>

                        <input style="display: none;" type="text" name="addorupdate" value="">
                        <input style="display: none;" type="text" name="id" value="">
                    </h6>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button id="save" type="button" class="btn btn-primary" data-dismiss="modal">保存</button>
                </div>
            </div>
        </div>
    </div>
    <!-- <div class="layui-inline">
				<a class="layui-btn  delAll_btn">批量删除</a>
			</div> -->
    <!-- </form>
	</blockquote>
	<table id="userList" lay-filter="userList" lay-skin="line"></table>

	操作-->
    <!-- <script type="text/html" id="userListBar">
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">编辑</a>
	    <a class="layui-btn  layui-btn-xs " lay-event="usable">已启用</a>
		 <a class="layui-btn layui-btn-primary layui-btn-xs " lay-event="del">删除</a>
	 </script>
</form>  -->

    <script type="text/javascript" src="../../js/bootstrap.js"></script>
    <script type="text/javascript" src="../../js/public.js"></script>
    <script type="text/javascript" src="../../layui/layui.js"></script>
<!--    <script type="text/javascript" src="userList.js"></script>-->
    <script type="text/javascript" src="../../js/userInfo.js"></script>

</body>

</html>